<template>
  <div class="learning-initRouterByFolder">
    <h3>使用vite <code>import.meta.glob</code></h3>
    <div class="code-source-wrapper" v-highlight>
      <pre data-type="js">
        {{ codeFragment["router-1"] }}
      </pre>
    </div>
    <h3>可供选择的第二参数 options</h3>
    <div class="code-source-wrapper" v-highlight>
      <pre data-type="js">
        {{ codeFragment["router-2"] }}
      </pre>
    </div>
  </div>
</template>

<script setup>
import codeFragment from '@/assets/js/codeFragment';
</script>
